package learn.euraka.hystrix.web.controller;

import learn.euraka.hystrix.service.ComputeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @Author： xiami
 * @Date： Created in 2018-03-25 22:27
 * @Modified By：
 */
@RestController
public class ComputeConsumerController {

    @Resource
    ComputeService computeService;

    @GetMapping("/add")
    public String add() {
        String result = computeService.add();
        return result;
    }

}
